package com.buddy.sds.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.buddy.sds.auth.entity.DepartmentTree;
import com.buddy.sds.auth.entity.SystemDepartment;

import java.util.List;

public interface ISystemDepartmentService extends IService<SystemDepartment> {

    List<DepartmentTree> getDepartmentTree();

    boolean idExists(String did);

    void deleteCascase(String depid);

    boolean isChildNode(String departmentId1, String departmentId2);

    SystemDepartment getTopDeptByCurrentDept(SystemDepartment currentDept);
}
